package com.ant.myagile

class MeetingVideoController {

	MeetingVideoService meetingVideoService;
	
    def index() { }
	
	def jsonFindVideoBySprint() {
		def sprintID = params.sprintID;
		def meetingVideos = meetingVideoService.findVideoBySprint(sprintID);
		if(meetingVideos) {
			render(contentType : "text/json", {[meetingVideos : meetingVideos, result : "OK"]})
			response.status = 200
		} else {
			render(contentType : "text/json", {[result : "No Data"]})
			response.status = 200
		} 
	}
}
